package com.demo.common.entity.vo;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author why
 * @description
 * @date 2025/9/26 15:34
 */
@Data
public class ChatRoomMemberVO {
    // 用户相关字段
    private Long userId;          // b.id AS user_id
    private String username;      // b.username
    private String gender;        // b.gender
    private Integer age;          // b.age
    private String avatar;        // b.avatar
    private String address;       // b.address

    // 房间相关字段
    private Long roomId;
    private String roomName;      // c.room_name
    private String roomType;      // c.room_type
    private String roomDescription; // c.room_description
    private String roomAvatar;    // c.avatar AS room_avatar (避免与用户头像冲突)
    private Integer maxMembers;   // c.max_members
    private Boolean isActive;     // c.is_active
    private Long creatorId;       // c.creator_id

    // 成员关系相关字段
    private String role;          // a.role
    private String nickname;      // a.nickname
    private LocalDateTime joinTime; // a.join_time
    private Boolean isMuted;      // a.is_muted

}
